import {baseFilePath} from "@/util/publicConfig";

const baseMixins = {
  data() {
    return {
      baseFilePath
    }
  },

  methods: {
    /**
     * 可以返回上级页面
     * @param url
     */
    goSubPage(url) {

      uni.navigateTo({url});
    },
    /**
     * 不可以返回上级页面
     * @param url
     */
    redirectToPage(url) {
      uni.redirectTo({url});
    }
  },
}

export {baseMixins}
